<?php
include 'ElementXml.php';

$ul = new ElementXmlTeste('ul');
$ul->addAttribute('class', 'lista-teste');

$li = new ElementXmlTeste('li');

$a = new ElementXmlTeste('a');
$a->addAttribute('href', 'http://www.mateusmartins.com.br');
$a->addAttribute('target', '_blank');
$a->addElement('mateusmartins.com.br');

$li->addElement($a);

$ul->addElement($li);

echo $ul;